﻿@model WebApplication11.Models.Books
@{
    ViewBag.Title = "EditBook" + Model.Title;
}

<h2>EditBook</h2>
<form method="post">
    @Html.LabelFor(x => x.Title)
    @Html.TextBoxFor(x => x.Title, new { @class = "form-control" })
    <br />
    @Html.LabelFor(x => x.Author)
    @Html.TextBoxFor(x => x.Author, new { @class = "form-control" })
    <br />
    @Html.LabelFor(x => x.PubDate)
    @Html.TextBoxFor(x => x.PubDate, new { @class = "form-control" })
    <br />
    @Html.LabelFor(x => x.Summary)
    @Html.TextAreaFor(x => x.Summary, new { @class = "form-control" })
    <br />
    @Html.LabelFor(x => x.ImgUrl)
    @Html.TextBoxFor(x => x.ImgUrl, new { @class = "form-control" })
    <br />
    @Html.LabelFor(x => x.Genre)
    @Html.TextBoxFor(x => x.Genre, new { @class = "form-control" })
    <br />
    @Html.LabelFor(x => x.Rating)
    @Html.EnumDropDownListFor(x => x.Rating, new { @class = "form-control" })
    <br />
    @Html.HiddenFor(x => x.Id)
    <button class="btn btn-success">Submit</button>
</form>


